package org.findbugs.report.messages;

import org.dom4j.Node;

public class BugPattern {

    private String description;
    private String details;

    public static BugPattern create(Node bugNode) {
        BugPattern bug = new BugPattern();
        bug.setDescription(bugNode.selectSingleNode("ShortDescription").getText());
        bug.setDetails(bugNode.selectSingleNode("Details").getText());
        return bug;
    }
    
    public String getDescription() {
        return description;
    }

    public String getDetails() {
        return details;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setDetails(String details) {
        this.details = details;
    }
}
